<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of system_session
 *
 * @author phamhphuc
 */
class system_session {
    //put your code here
    public $namespace = "referer_";
    public $config = null;
    
    public function __construct($config, $nspace = "referer_") {
        session_start();
        $this->config = $config;
        $this->namespace = $nspace;
//        $this->namespace .= $config['smt_user_id'];
    }
    public function __set($key, $value) {
            $_SESSION[$this->namespace . $key] = $value;
    }

    public function __get($key) {
            return @$_SESSION[$this->namespace . $key];
    }
}

?>
